package com.dl7.mvp.utils;

/**
 * Created by tangyouke on 2/13/18.
 */

public class Utils {
    /**
     * 从url中截取文件名
     * @param url
     * @return
     */
    public static String clipFileName(String url) {
        int index = url.lastIndexOf("/");
        if (index != -1) {
            return url.substring(index + 1);
        }
        return null;
    }
}
